<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2016/8/5
 * Time: 17:12
 */

namespace App\Models;

use Zizaco\Entrust\EntrustPermission;

class Permission extends EntrustPermission
{
    /**
     * 属于该权限的角色。
     */
    public function roles()
    {
        return $this->belongsToMany('App\Models\Role','permission_role','permission_id','role_id');
    }

}